package org.budo.netty.servlet.server.handler.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;

import org.budo.netty.servlet.server.handler.BudoServletHandler;

/**
 * @author lmw
 */
public class BudoServletRequestWrapper extends HttpServletRequestWrapper implements BudoServletRequest {
    public BudoServletRequestWrapper(HttpServletRequest request) {
        super(request);
    }

    @Override
    public BudoServletHandler getBudoServletHandler() {
        return ((BudoServletRequest) this.getRequest()).getBudoServletHandler();
    }

    @Override
    public void setServletResolved(ServletResolved servletResolved) {
        ((BudoServletRequest) this.getRequest()).setServletResolved(servletResolved);
    }
}